package com.chen.vo;

import java.math.BigDecimal;

/**
 * @author cws
 * @since
 */

public class MyProductsVo {
    private Long id;
    private String name;
    private String image;
    private Boolean isNew;
    private Integer rating;
    //    原价
    private BigDecimal originalPrice;
    // 现价格
    private BigDecimal currentPrice;


     public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Boolean getNew() {
        return true;
    }

    public void setNew(Boolean aNew) {
        isNew = aNew;
    }

    public Integer getRating() {
        return (int) (Math.random() * (5 - 3 + 1)) + 3;
    }

    public void setRating(Integer rating) {
        this.rating =  rating;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(BigDecimal currentPrice) {
        this.currentPrice = currentPrice;
    }
}

